package com.javaspeak.designpatterns.go4.creational.abstractfactory;

/**
 * Implementation of ShapeFactory which returns a Square when the getShape()
 * method is called.
 *
 * @author John Dickerson
 */
public class SquareFactory implements ShapeFactory {

    /* (non-Javadoc)
     * @see com.javaspeak.designpatterns.go4.creational.abstractfactory.
     *      ShapeFactory#getShape()
     */
    @Override
    public Shape getShape() {

        return new Square();
    }
}
